package com.example.xd.gupmodule;

import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.ArrayList;
import java.util.List;

/**
 * @auther XuDan on 2020/5/8.
 */
class ItemAdapter extends BaseQuickAdapter<Integer, BaseViewHolder> {

    public ItemAdapter(int layoutResId, @Nullable List<Integer> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, Integer item) {
        helper.setText(R.id.item_tv, item.toString());
    }
}
